<?php

class AFException extends Exception
{
	private $depth = 0;

	public function __construct($message, $depth = 0)
	{
		parent::__construct($message);
		$this->depth = $depth;
	}

	public function getDepth()
	{
		return $this->depth;
	}
};

?>
